package com.xyht.sca_s.student_manage_system.modules.welcomeNewStudent.controller;


import com.xyht.sca_s.student_manage_system.common.commonReturn.ResponseResult;
import com.xyht.sca_s.student_manage_system.common.desEncodeAndDecode.annotation.SecretBody;
import com.xyht.sca_s.student_manage_system.modules.welcomeNewStudent.entity.req.SmsWnsSchoolFeesDelayProcessReq;
import com.xyht.sca_s.student_manage_system.modules.welcomeNewStudent.service.SmsWnsSchoolFeesDelayProcessService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * <p>
 * 学费缓交审批流程 前端控制器
 * </p>
 *
 * @author XYHT
 * @since 2024-01-30
 */
@RestController
@RequestMapping("/welcomeNewStudent/schoolFeesDelayProcess")
@SecretBody
public class SmsWnsSchoolFeesDelayProcessController {

    @Resource
    private SmsWnsSchoolFeesDelayProcessService smsWnsSchoolFeesDelayProcessService;

    @ApiOperation(value = "流程修改")
    @PostMapping("/update")
    public ResponseResult updateSchoolFeesDelayProcess(@RequestBody SmsWnsSchoolFeesDelayProcessReq processVO) {
        return smsWnsSchoolFeesDelayProcessService.updateSchoolFeesDelayProcess(processVO);
    }

    @ApiOperation(value = "流程列表")
    @GetMapping("/list")
    public ResponseResult getSchoolFeesDelayProcessList() {
        return smsWnsSchoolFeesDelayProcessService.getSchoolFeesDelayProcessList();
    }

}

